<%@ page import="java.util.*" language="java"  pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort()+ request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="content-type"	content="text/html; charset=utf-8" />
		<title>管理系统</title>
		<script type="text/javascript" src="<%=path%>/commons/jquery/jquery.js"></script>
		<script type="text/javascript" src="<%=path%>/commons/dtree/dtree_back.js"></script>
		<script type="text/javascript" src="<%=path%>/commons/jquery/widgets.js"></script>
		<script type="text/javascript" src="<%=path %>/commons/jquery/utils.js"></script>
		<link rel="stylesheet" type="text/css" href="<%=path%>/commons/css/widgets.css" />
		<script type="text/javascript" src="<%=path%>/commons/jquery/app.js"></script>
		<link rel="stylesheet" type="text/css" href="<%=path%>/commons/css/index.css" />
		<script type="text/javascript" src="<%=path%>/commons/js/a.js"></script>
	</head>
	<body>
		<!-- 
		<div id="loading-mask" style="background-color: white"></div>
	  	<div id="loading">
	    	<div class="loading-indicator"><img src="<%=path%>/commons/images/blue-loading.gif" width="32" height="32" style="margin-right:8px;float:left;vertical-align:top;"/>语音预定管理平台 - <a>谢谢您的使用</a><br><span id="loading-msg"></span></div>
	 	</div>
	 	 -->		
		<div id="k_layout_fixIE">
			<div id="k_layout">
				<div id="k_north">
					<div id="k_north_inner" class="header">
						<div class="logo">
							<span class="topic">
								管理系统
							</span>
							<div class="userInfo">
								<span>所属地区：<em>福建省</em></span>|
								<span>账号：<em>${admin.name}</em></span>|
								<%-- --%>
								<span>角色：<em>
								${admin.leve}管理员
								</em></span>
							</div>
							<ul class="tab">
								<li><a href="<%=path %>/jsps/admin.jsp"><span>刷新</span></a></li>
								<li><a style="text-decoration:none;cursor:pointer;" onclick="logout();"><span>退出</span></a></li>
							</ul>
						</div>
					</div>
					<!--  -->
					<div class="noticCls" id="noticId">
						<span>最新公告：<em>管理系统上线</em></span>
					</div>
					
					 <!-- <a target="iframeGrid"  href="#" onclick="d.s(7);">您有待办事项[0]件！</a> -->
				</div>
				<div id="k_west">
					<div id="k_west_inner">
						<div class="l_t" id="k_west_t">
							<span class="g_n">系统功能菜单</span>
						</div>
						<div>
							<div id="treeCont" style="padding-left:12px;padding-top:14px;overflow:auto;">
							<script type="text/javascript">
									<!--
									var d = new dTree('d');
									d.icon = {
											root				: '<%=path %>/commons/css/tree/base.gif',
											folder			: '<%=path %>/commons/css/tree/folder.gif',
											folderOpen	: '<%=path %>/commons/css/tree/folderopen.gif',
											node				: '<%=path %>/commons/css/tree/page.gif',
											empty				: '<%=path %>/commons/css/tree/empty.gif',
											line				: '<%=path %>/commons/css/tree/line.gif',
											join				: '<%=path %>/commons/css/tree/join.gif',
											joinBottom	: '<%=path %>/commons/css/tree/joinbottom.gif',
											plus				: '<%=path %>/commons/css/tree/plus.gif',
											plusBottom	: '<%=path %>/commons/css/tree/plusbottom.gif',
											minus				: '<%=path %>/commons/css/tree/minus.gif',
											minusBottom	: '<%=path %>/commons/css/tree/minusbottom.gif',
											nlPlus			: '<%=path %>/commons/css/tree/nolines_plus.gif',
											nlMinus			: '<%=path %>/commons/css/tree/nolines_minus.gif'
									};
									//function Node(id, pid, name, url, html, title, target, icon, iconOpen, open)
									d.add('MODULE_ROOT',-1,'功能菜单');
												d.add('100-1', '100' , '员工信息' , '/pms/emp!show.action','','员工信息','iframeGrid');
												d.add('100-2', '100' , '增加新员工' , '/pms/emp!toadd.action','','增加新员工','iframeGrid');
												d.add('100-3', '100' , '新增员工调动' , '/pms/tran_toadd.action','','新增员工调动','iframeGrid');
												d.add('100-4', '100' , '员工调动记录' , '/pms/tran_show.action','','员工调动记录','iframeGrid');
												d.add('200-1', '200' , '工资发放记录' , '/pms/pay_show.action','','工资发放记录','iframeGrid');
												d.add('200-2', '200' , '每月记录统计' , '#','','每月记录统计','iframeGrid');
												d.add('300-1', '300' , '考勤情况' , '/pms/chk_show.action','','考勤情况','iframeGrid');
												d.add('300-2', '300' , '每月考勤统计' , '#','','每月考勤统计','iframeGrid');
												d.add('400-1', '400' , '管理员信息' , '/pms/admin!show.action','','管理员信息','iframeGrid');
												d.add('400-2', '400' , '增加新管理员' , '/pms/jsps/add/admin.jsp','','增加新管理员','iframeGrid');
												d.add('100', 'MODULE_ROOT' , '人员管理' , '','','');
												d.add('200', 'MODULE_ROOT' , '工资管理' , '','','');
												d.add('300', 'MODULE_ROOT' , '考勤管理' , '','','');
												d.add('400', 'MODULE_ROOT' , '管理员管理' , '','','');
									document.write(d);
									//-->
							</script>
							</div>
							
						</div>
					</div>
					<div id="k_west_split"><a href="#"></a></div>
				</div>
				<div class="k_center" id="k_center">
					<div id="k_center_inner">
						<div class="yk_tab" id="yk_tab_id">
							<div class="tabWap">
								<div class="tab_scroll">
									<ul>
										<li class="tab_item on" id="indexTab">
											<div class="tab_text">首页</div>
										</li>
										<li class="tab_item" id="iframeIdTab" style="display:none;">
											<div class="tab_text" id="tabNameId">搜索结果页</div>
											<a id="closeBtn" class="yk_close" href="javascript:void(0)"></a>
										</li>
										<li>
											<span style="color:red;margin-left:20px;" id="loadingTip"></span>
										</li>
									</ul>
								</div>
							</div>
						</div>
						<div id="indexCont">
							<iframe id="xxxoo" name="xxxoo" src="indexTab.html" frameborder="0" style="border:none;width:100%;height:100%;"></iframe>
						</div>
						<div id="iframeCont" style="display:none;">
							<iframe src="#" id="iframeGrid" name="iframeGrid" frameborder="0" style="border:none;width:100%;height:100%;"></iframe>
						</div>						
					</div>
					<script type="text/javascript">
						var indexTab = $("#indexTab");
						var iframeIdTab = $("#iframeIdTab");
						var indexCont = $("#indexCont");
						var iframeCont = $("#iframeCont");
						
						$("#closeBtn").click(function(){
							iframeCont.hide();
							indexCont.show();
							iframeIdTab.removeClass("on");
							indexTab.addClass("on");
							iframeIdTab.css({display:"none"});
							$("#iframeGrid").attr({src:"#"});
						});
						
						indexTab.click(function(){
							indexCont.show();
							iframeCont.hide();
							indexTab.addClass("on");
							iframeIdTab.removeClass("on");
						});
						iframeIdTab.click(function(e){
							
							if(e.target&&e.target.tagName.toUpperCase()=="A"){
								return ;
							}
							indexCont.hide();
							iframeCont.show();
							indexTab.removeClass("on");
							iframeIdTab.addClass("on");
						});
					</script>			
				</div>	
			</div>
		</div>
	</body>
</html>
